<template>
	<view class="u-p-30">
		<view class="bg_FFFFFF u-p-20 u-b-r-20">
			<view class="u-flex u-row-between u-b-r-20 u-m-t-20"
				style="background-color:#F5F5F5FF ; padding:30rpx 20rpx;"
				@click="$u.route('/pages/address/addAddress')">
				<view class="cl_1C1C1CFF">我的收货地址</view>
				<u-image src="https://www.sqkjkj.vip/wxImg/mymassage/img6.png" mode="aspectFill" width="20rpx" height='20rpx'></u-image>
			</view>

			<view class="u-flex u-row-between u-b-r-20 u-m-t-20"
				style="background-color:#F5F5F5FF ; padding:30rpx 20rpx;"
				@click="$u.route('/subcontract/invoice/rise/riseAll')">
				<view class="cl_1C1C1CFF">开票信息</view>
				<u-image src="https://www.sqkjkj.vip/wxImg/mymassage/img6.png" mode="aspectFill" width="20rpx" height='20rpx'></u-image>
			</view>

			<view class="u-flex u-row-between u-b-r-20 u-m-t-20"
				style="background-color:#F5F5F5FF ; padding:30rpx 20rpx;" @click="$u.route('/pages/login/agreement?title=用户协议')">
				<view class="cl_1C1C1CFF">注册协议</view>
				<u-image src="https://www.sqkjkj.vip/wxImg/mymassage/img6.png" mode="aspectFill" width="20rpx" height='20rpx'></u-image>
			</view>
			<view class="u-flex u-row-between u-b-r-20 u-m-t-20"
				style="background-color:#F5F5F5FF ; padding:30rpx 20rpx;" @click="$u.route('/pages/login/agreement?title=隐私政策')">
				<view class="cl_1C1C1CFF">隐私政策</view>
				<u-image src="https://www.sqkjkj.vip/wxImg/mymassage/img6.png" mode="aspectFill" width="20rpx" height='20rpx'></u-image>
			</view>
			<view class="u-flex u-row-between u-b-r-20 u-m-t-20"
				style="background-color:#F5F5F5FF ; padding:30rpx 20rpx;" @click="$u.route('/pages/save/save')">
				<view class="cl_1C1C1CFF">账号与安全</view>
				<u-image src="https://www.sqkjkj.vip/wxImg/mymassage/img6.png" mode="aspectFill" width="20rpx" height='20rpx'></u-image>
			</view>
			<view class="u-flex u-row-between u-b-r-20 u-m-t-20" style="background-color:#F5F5F5FF ; padding:30rpx 20rpx;"
				@click="cancel">
				<view class="cl_1C1C1CFF">注销账号</view>
				<!-- <u-image src="https://www.sqkjkj.vip/wxImg/mymassage/img6.png" mode="aspectFill" width="20rpx" height='20rpx'></u-image> -->
			</view>
			<view class="u-flex u-row-between u-b-r-20 u-m-t-20"
				style="background-color:#F5F5F5FF ; padding:30rpx 20rpx;" @click="out">
				<view class="cl_1C1C1CFF">退出</view>
				<!-- <u-image src="https://www.sqkjkj.vip/wxImg/mymassage/img6.png" mode="aspectFill" width="20rpx" height='20rpx'></u-image> -->
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		onLoad() {

		},
		
		methods: {
			out(){
				var that=this
				uni.showModal({
				        title: '提示',
				        content: '确认退出此账号吗',
				        success: function(res) {
				        if (res.confirm) {
				            uni.removeStorageSync('token')
							uni.removeStorageSync('location')
							uni.removeStorageSync('regcode')
							uni.setClipboardData({
								data:'',
								showToast:false,
								success: () => {
									uni.hideToast();
								}
							})
				            that.$u.route('/pages/login/login')
				        } 
				        else {
				            // 执行取消后的操作
				        }
				    }
				})
			},
			cancel() {
				var that = this
				uni.showModal({
					title: '提示',
					content: '确认注销此账号吗',
					success: (res)=> {
						if (res.confirm) {
							that.$api.cancel({}, res => {
								
							})
						} else {
							// 执行取消后的操作
						}
					}
				})
			}
			
		}
	};
</script>
<style lang="scss" scoped>
	page {
		background: #F5F5F5FF !important;
	}
</style>
